//package com.buu.system.dao;
//
//import com.buu.system.domain.UserRoleDO;
//import org.apache.ibatis.annotations.Delete;
//import org.apache.ibatis.annotations.Insert;
//import org.apache.ibatis.annotations.Select;
//
//import java.util.List;
//
//public interface UserRoleMapper {
//	@Insert("INSERT INTO sys_user_role(id, user_id, role_id)" + "VALUES(#{id}, #{userId}, #{roleId})")
//	int save(UserRoleDO ur);
//
//	@Delete("DELETE FROM  sys_user_role WHERE id=#{id}")
//	int remove(Long id);
//
//	@Delete("DELETE FROM  sys_user_role WHERE user_id=#{id}")
//	int removeByUserId(Long id);
//
//	@Delete("<script>" + "delete from sys_user_role where user_id in"
//			+ " <foreach collection=\"list\" index=\"i\" open=\"(\" separator=\",\" close=\")\" item=\"item\"  >#{item}</foreach>"
//			+ "</script>")
//	int batchRemove(List<Long> list);
//
//	@Select("select role_id from sys_user_role where user_id=#{userId}")
//	List<Long> listRoleId(Long userId);
//}
